﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        private double ttrs;
        private double ttrs1;
        private double ttrs2;
        public double Ttrs { get; set; }
        public double Ttrs1{ get; set; }
        public double Ttrs2 { get; set; }




        public void calculate(double Long, double Wide)
        {

            Console.WriteLine("长方形的面积是" + Long * Wide);
        }

        public void calculate(double R)
        {

            Console.WriteLine("这个圆的面积是" + (R * R) * 3.14);
        }

        public Program(double lo, double wide)
        {
            this.Ttrs = lo;
            this.Ttrs1 = wide;
        }


        public Program()
        { }
    }
}
